package com.leonzx.base.dao.system;

import com.leonzx.base.entity.system.User;
import com.leonzx.base.utils.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @Author:梁亮
 * @Description:
 * @Date: 2018/6/4 11:51
 */
@Repository
public interface UserDAO extends MyMapper<User> {
    List<User> findUserByUsernames(@Param("usernames") List<String> usernames, @Param("name") String name, @Param("username") String username);

    List<User> findUserByRoleId(@Param("roleId") String roleId);

    List<User> findUserByRoleIdAndState(@Param("roleId") String roleId, @Param("state") Integer state);

    String findIdByUserName( @Param("username") String username);
}
